# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ttpassgen
_pkgname=TTPassGen
pkgver=133.a06d99d
pkgrel=8
pkgdesc='Highly flexible and scriptable password dictionary generator based on Python.'
arch=('any')
groups=('blackarch' 'blackarch-automation' 'blackarch-cracker')
url='https://github.com/tp7309/TTPassGen'
license=('Apache')
depends=('python' 'python-tqdm' 'python-click')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/tp7309/$_pkgname")
sha512sums=('SKIP')

build() {
  cd $_pkgname

  python setup.py build
}

package() {
  cd $_pkgname

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

